package com.ibiaoke.system.service;

import com.ibiaoke.system.entity.Shop;
import com.ibiaoke.system.entity.dto.DeliverInfoDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by SuXin on 2017/6/20.
 */
public interface ShopService {

    int saveShop(Shop shop);

    int updateShop(Shop shop);

    Shop getShop(Integer shopId);

    List<Shop> listShop();

    int deleteShop(Integer shopId);

    List<Shop> listAllShop();

    List<Shop> listSortedShops(Double longitude, Double latitude);

    Shop getNearestShop(Double longitude, Double latitude);

    String validateDistanceAndOpenTime(Double longitude, Double latitude);

    DeliverInfoDTO getDeliveryInfo(Double longitude, Double latitude, BigDecimal productPrice);

    Shop getShop(String mobile);

    int relevanceShop(Shop shop);
}
